//
//  LBTwoPassFilter.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 11/27/12.
//  Copyright (c) 2012 UIT. All rights reserved.
//

#ifndef OpenGLGame_LBTwoPassFilter_h
#define OpenGLGame_LBTwoPassFilter_h

#include "LBFilter.h"

class LBProgram;
class LBTexture;
class LBFramebuffer;

class LBTwoPassFilter : public LBFilter{

protected:
    LBProgram* program2;
    LBTexture* texture2;
    LBFramebuffer* framebuffer;
    GLuint textureUniform2;
    GLuint texCoorAttribute2;
    GLuint positionAttribute2;
    
public:
    LBTwoPassFilter();
    virtual ~LBTwoPassFilter();
    virtual void init(char* vShaderStr1, char* fShaderStr1, char* vShaderStr2, char* fShaderStr2);
    
    virtual void renderTexture(int x, int y, float scaleX, float scaleY);
    
    //getter and setter
    virtual void setTexture(LBTexture* texture);
};

#endif
